<template>
<div class="recommend">
  <div v-for="item in recommends" :key="item.index" class="recommend-item">
    <a :href="item.link">
      <img :src="item.image" alt />
      <div>{{item.title}}</div>
    </a>
  </div>
</div>
</template>

<script>
export default {
  name: 'RecommentView',
  props: {
    recommends: {
      type: Array,
      default () {
        return []
      },
    },
  },
}
</script>

<style scoped>
.recommend {
  display: flex;
  border-bottom: 8px solid #eee;
  padding-bottom: 25px;
}

.recommend-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
}

.recommend-item img {
  width: 90%;
  margin: 10px 0;
}
</style>
